package ae.pcfc.cldos.online.web.util;

import org.springframework.security.authentication.encoding.ShaPasswordEncoder;


public class SecurityUtils {

	public static final String encodePassword(String clearPassword) {
		
		String hashedPassword;		
		ShaPasswordEncoder encoder = new ShaPasswordEncoder();
		hashedPassword = encoder.encodePassword(clearPassword, null);
		
		return hashedPassword;
	}

}
